package org.seedltd.upms.model.sys.entity;

import java.util.Date;

import org.seedltd.core.base.BaseEntity;
import org.seedltd.upms.enums.UserEnableStatus;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Getter;
import lombok.Setter;

/**
 * 系统用户
 *
 * @author laizuan
 * @date 2019/10/22
 */
@Getter
@Setter
@TableName("sys_user")
public class SysUser extends BaseEntity {
    /**
     * 用户主键
     */
    @TableId(value = "user_id")
    private Long userId;

    /**
     * 公司主键
     */
    @TableField(value = "company_id")
    private Long companyId;

    /**
     * 登入账户
     */
    @TableField(value = "login_name")
    private String loginName;

    /**
     * 登入密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 用户名称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;


    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 微信openId
     */
    @TableField(value = "wx_open_id")
    private String wxOpenId;

    /**
     * 最后 一次登入时间
     */
    @TableField(value = "last_login_time")
    private Date lastLoginTime;


    /**
     * 启用状态(1启用 0禁用 2注销)
     */
    @TableField(value = "enabled")
    private UserEnableStatus enabled;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}